<?php
/**
 * Name: 会以验证.
 * User: 董坤鸿
 * Date: 2017/11/25
 * Time: 14:07
 */

namespace app\admin\validate;

use think\Validate;

class Meetings extends Validate
{
    /**
     * 规则
     * @var array
     */
    protected $rule = [
        'name' => 'require',
        'subtitle' => 'require',
        'thumb' => 'require',
        'type' => 'require',
        'sort' => 'require',
        'status' => 'require',
        'abstract' => 'require',
    ];

    /**
     * 消息
     * @var array
     */
    protected $message = [
        'name.require' => '请输入标题',
        'subtitle.require' => '请输入副标题',
        'thumb.require' => '请输入上传缩略图',
        'type.require' => '请选择类型',
        'sort.require' => '请排序',
        'status.require' => '请选择状态',
        'abstract.require' => '请输入会议描述',
    ];
}